<script setup lang="ts">
import { defineProps } from 'vue'
defineProps({
  iconName: {
    type: String
  },
  zh: {
    type: String
  },
  en: {
    type: String
  },
  showBorder: {
    type: Boolean
  }
})
</script>

<template>
  <view :class="['title', { border: showBorder }]">
    <MidIcon height="36rpx" width="36rpx" :name="iconName"></MidIcon>
    <span class="zh">{{ zh }}</span>
    <span class="en">{{ en }}</span>
  </view>
  <slot></slot>
</template>

<style scoped lang="scss">
.border {
  border-bottom: 1rpx solid #999;
}
.title {
  height: 100rpx;
  display: flex;
  align-items: center;
  .zh,
  .en {
    line-height: 28rpx;
  }
  .zh {
    font-size: 36rpx;
    font-weight: bold;
  }
  .en {
    font-size: 20rpx;
  }
}
</style>
